#include<iostream>

class Dog{
	public:
		static int Dogs;
		Dog()
		{
			Dogs++;
		}
		~Dog()
		{
			Dogs--;
		}
		static int GetDogs()
		{
			return Dogs;
		}
		static void SetDogs(int x)
		{
			Dogs = x;

			return ;
		}
};

int Dog::Dogs = 0;

int main()
{
	Dog a1, a2 , *a3 = new Dog;
	std::cout << a1.GetDogs() << std::endl;

	delete a3;

	std::cout << a1.GetDogs() << std::endl;

	return 0;
}
